package com.naiterui.ehp.bs.ds.modules.order.vo;

import java.util.Date;

import com.naiterui.ehp.bp.support.bean.annotation.Fen2Yuan;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

/**
 * <pre>
 *      订单导出Excel
 * </pre>
 *
 * @author 王泽浩
 * @date 2019-07-12 10:25
 * @since 1.0.0
 */
@Data
public class OrderExcelVO implements java.io.Serializable {
    private static final long serialVersionUID = 2677008682871876239L;

    @Excel(name = "订单号", orderNum = "0", width = 25)
    private String orderSn;

    @Excel(name = "订单状态", orderNum = "1", width = 20, replace = {"待付款_1", "处方流转成功_2", "订单已发货_3", "订单已签收_4", "已取消_5",
        "处方流转失败_6", "待审核_7", "订单审核完成_8", "库房分配完成_9", "药店已确认订单_10"})
    private Integer orderStatus;

    @Excel(name = "商品sku码", orderNum = "2", width = 20)
    private String skuNumber;

    @Excel(name = "商品名称", orderNum = "3", width = 50)
    private String skuName;

    @Excel(name = "商品单价", orderNum = "4", width = 15, numFormat = "###,##0.00")
    private double salePrice;

    @Excel(name = "购买数量", orderNum = "5", width = 15)
    private Integer quantity;

    @Excel(name = "商品金额", orderNum = "6", width = 15, numFormat = "###,##0.00")
    private double skuPrice;

    @Fen2Yuan
    @Excel(name = "订单应付金额", orderNum = "7", width = 15, numFormat = "###,##0.00")
    private double totalMoney;

    @Excel(name = "订单实付金额", orderNum = "8", width = 15, numFormat = "###,##0.00")
    private double realityMoney;

    @Excel(name = "支付方式", orderNum = "9", width = 15)
    private String payType = "线上支付";

    @Excel(name = "下单时间", orderNum = "10", format = "yyyy-MM-dd HH:mm:ss", width = 25)
    private Date createdAt;

    @Excel(name = "付款时间", orderNum = "11", format = "yyyy-MM-dd HH:mm:ss", width = 25)
    private Date payTime;

    @Excel(name = "收货人姓名", orderNum = "12", width = 20)
    private String receiver;

    @Excel(name = "收货人手机号", orderNum = "13", width = 20)
    private String phone;

    @Excel(name = "收货地址", orderNum = "14", width = 40)
    private String address;

    @Excel(name = "发票抬头", orderNum = "15", width = 20)
    private String invoiceTitle;

    @Excel(name = "发票税号", orderNum = "16", width = 20)
    private String invoiceTaxNo;

    @Excel(name = "物流公司", orderNum = "17", width = 20)
    private String logisticsCompany;

    @Excel(name = "物流单号", orderNum = "18", width = 20)
    private String deliveryId;

}
